//整理级联选择器数据
export function formatCascader(datas, valueName, labelName, childrenName){
    for(let item of datas) {
        item.value = item[valueName];
        item.label = item[labelName];
        item.children = item[childrenName];
        if(item.children.length > 0) {
            formatCascader(item.children, valueName, labelName, childrenName);
        }
    }
    return datas;
 };